﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Events
{
    public partial class check_game_tttn : System.Web.UI.Page
    {
        public string player = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            int event_id = int.Parse(Request.QueryString["event_id"]);
            int type = int.Parse(Request.QueryString["type"]);
            int question = int.Parse(Request.QueryString["question"]);

            var get_player = new TblEventRoomController().FetchAll().Where(x => x.EventId == event_id && x.GameType == type && x.GameId == question);
            if (get_player.ToList().Count != 0)
                player = get_player.Last().PlayerId.ToString();
        }
    }
}